package com.company.service;

import com.company.domain.Student;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

public interface StudentService {
    //查询所有学生
    public abstract ArrayList<Student> findAll();

    //条件查询，根据id获取学生信息
    public abstract Student findById(Integer id);

    //新增学生信息
    public abstract int insert(Student stu);

    //修改学生信息
    public abstract int update(Student stu);

    //删除学生信息
    public abstract int delete(Integer id);

    //批量添加学生信息
    public abstract void insertALL(List<Student> stuList) throws SQLException;
}
